<template>
  <div class='top-app'>
    <div class="download-app-bar">
      <span
        class="back"
        @click="goToBack"
      >&lt;</span>
      <!-- <van-icon
        name="arrow"
        class="back"
        @click="goToBack"
      /> -->
      <h1><img
          class="logo"
          alt="logo"
          src="http://s0.meituan.net/bs/myfe/canary/file/asgard/images/avatar.png"
        ></h1>
      <div class="app-name-desc">
        <div class="app-name">猫眼</div>
        <div class="app-desc">在线选座，热门影讯，爱上看电影</div>
      </div>
      <a
        href=""
        class="link btn-open-app"
      >打开App</a>
    </div>
  </div>
</template>
<script>
export default {
  data: () => ({}),
  methods: {
    goToBack() {
      // 回退到上一级
      this.$router.go(-1)
      // this.$router.go(-1)
    }
  }
}
</script>
<style lang="scss" scoped>
.top-app {
  .download-app-bar {
    position: relative;
    min-height: 64px;
    background-color: #fff;
    z-index: 11;
    .back {
      font-size: 30px;
      position: absolute;
      top: 10px;
      left: 10px;
      font-family: "宋体";
      font-weight: bold;
      color: #ccc;
    }
    img.logo {
      position: absolute;
      left: 45px;
      top: 11px;
      width: 42px;
      height: 42px;
    }
    .app-name-desc {
      position: absolute;
      left: 100px;
      top: 12px;
      .app-name {
        font-size: 17px;
        color: #222;
        line-height: 23px;
      }
      .app-desc {
        font-size: 12px;
        color: #999;
      }
    }
    .btn-open-app {
      position: absolute;
      right: 15px;
      top: 17px;
      width: 68px;
      height: 30px;
      line-height: 30px;
      text-align: center;
      background: #ef4238;
      border-radius: 3px;
      font-size: 13px;
      color: #fff;
    }
  }
}
</style>
